package com.kuaiditu.assistant.api.zzt_api.base;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.annotation.JSONField;

/**
 * Created by Eenie on 2017/9/15.
 * Email: eeniework@gmail.com
 * Des:
 */

public class BaseZTResponse {


    /**
     * result : [{"uploadResult":true,"index":0,"message":"数据上传成功"}]
     * message : 请求成功
     * status : true
     * statusCode : 0
     */

    private String message;
    private boolean status;
    private String statusCode;
    private String result;

    private Object resultJson;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public String getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(String statusCode) {
        this.statusCode = statusCode;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }


    @JSONField(serialize = false)
    public JSONObject getResultJson() {
        return JSON.parseObject(this.result);
    }
}
